package com.flca.dbs.appengine;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.flca.frw.dao.Dao;
import com.flca.frw.dao.DaoFactory;
import com.flca.frw.dao.RegisterDatabase;

public class AppEngineDaoFactory implements DaoFactory {

	private static Logger logger = LoggerFactory.getLogger(AppEngineDaoFactory.class);

	@SuppressWarnings("unused")
	private RegisterDatabase registerDbs; 

	@Override
	public Dao build() {
		try {
			return new AppEngineDaoImpl();
		} catch (Exception e) {
			logger.error("error creating DaoHelperBerkeley " + e);
			throw new RuntimeException(e);
		}
	}

	@Override
	public void register(RegisterDatabase aRegisterDbs) {
		this.registerDbs = aRegisterDbs;
	}

}
